import time,logging
from Tools.Tools import log
from Page.Page import Page
from Page.Page1 import Page1
from Page.Page2 import Page2
from selenium import webdriver
import unittest
class test_Case(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        log()
        logging.info('测试开始')
    def tearDown(self):
        time.sleep(10)
        self.driver.quit()
        logging.info('测试结束')
    def test_01_login(self):
        logging.info('start')
        po = Page(self.driver)
        po.login_lj()
        logging.info('end')
    def test_02_add(self):
        logging.info('start')
        po = Page1(self.driver)
        po.addshop_lj()
        logging.info('end')
    def test_03_address(self):
        logging.info('start')
        po = Page2(self.driver)
        po.address_lj()
        logging.info('end')


